const Park = {
  path: "/park",
  meta: {
    title: "场库停车",
    sort: 6,
  },
  redirect: "/park/monitor/onSiteVehicles",
  img: new URL("@/assets/image/ico/park.png",
    import.meta.url).href,
  imgActive: new URL("@/assets/image/ico/park-blue.png",
      import.meta.url)
    .href,
  // component: () => import("@/view/park/index.vue"),
  children: [{
      path: "/park/monitor",
      meta: {
        title: "场库监控",
        sort: 1,
      },
      img: new URL(
        "@/assets/image/ico/parkingLots/dataAnalysis.png",
        import.meta.url
      ).href,
      imgActive: new URL(
        "@/assets/image/ico/parkingLots/dataAnalysis-white.png",
        import.meta.url
      ).href,
      // component: () =>
      //   import("@/view/park/monitor/index.vue"),
      children: [{
          path: "/park/monitor/onSiteVehicles",
          meta: {
            title: "场内车辆",
            sort: 1,
          },
          component: () =>
            import(
              "@/view/park/monitor/onSiteVehicles/index.vue"
            ),
        },
        {
          path: "/park/monitor/stuntedVehicles",
          meta: {
            title: "滞留车辆",
            sort: 2,
          },
          component: () =>
            import(
              "@/view/park/monitor/stuntedVehicles/index.vue"
            ),
        }
      ]
    },
    {
      path: "/park/manage",
      meta: {
        title: "场库管理",
        sort: 2,
      },
      img: new URL(
        "@/assets/image/ico/parkingLots/dataAnalysis.png",
        import.meta.url
      ).href,
      imgActive: new URL(
        "@/assets/image/ico/parkingLots/dataAnalysis-white.png",
        import.meta.url
      ).href,
      // component: () =>
      //   import("@/view/park/manage/index.vue"),
      children: [{
          path: "/park/manage/binfo",
          meta: {
            title: "场库信息",
            sort: 1,
          },
          component: () =>
            import(
              "@/view/park/manage/bInfo/index.vue"
            ),
        },
        {
          path: "/park/manage/company",
          meta: {
            title: "物业公司列表",
            sort: 2,
          },
          component: () =>
            import(
              "@/view/park/manage/company/index.vue"
            ),
        },
      ],
    },
    {
      path: "/park/config",
      meta: {
        title: "全局配置",
        sort: 3,
      },
      img: new URL(
        "@/assets/image/ico/parkingLots/parkingLotBillingRules.png",
        import.meta.url
      ).href,
      imgActive: new URL(
        "@/assets/image/ico/parkingLots/parkingLotBillingRules-white.png",
        import.meta.url
      ).href,
      // component: () =>
      //   import("@/view/park/config/index.vue"),
      children: [{
          path: "/park/config/chargingRule",
          meta: {
            title: "计费规则",
            sort: 1,
          },
          component: () =>
            import(
              "@/view/park/config/chargingRule/index.vue"
            ),
        },
        {
          path: "/park/config/chargingRule/add",
          meta: {
            title: "新增计费规则",
            activePath: "/park/config/chargingRule",
            hidden: true,
          },
          component: () =>
            import(
              "@/view/park/config/chargingRule/page.vue"
            ),
        },
        {
          path: "/park/config/chargingRule/edit",
          meta: {
            title: "编辑计费规则",
            activePath: "/park/config/chargingRule",
            hidden: true,
          },
          component: () =>
            import(
              "@/view/park/config/chargingRule/page.vue"
            ),
        }
      ],
    },
  ],
};

export default Park;